package cn.touna.jss.modules.third.tencent.constant;

/**
 ********************************************************
 *  腾讯接口相关常量
 * @author zhangjialian
 * @Date 2018-08-10 14:45
 * @Version V1.0
 ********************************************************/
public class TencentConstant {
    public static String TYPE_IS_NULL="车辆识别类型不能为空";
    public static String IMAGE_OR_URL_IS_NULL="图片url链接或image文件不能同时为空";
    public static String OCR_RESULT_NULL="返回结果为空";
    public static String OCR_UNKNOW_ERROR="未知错误";

    public static String OCR_SUCCESS_CODE="0";

    /**
     * ocr接口名称
     */
    public static String OCR_DRIVER_LICENSE_RECOGNIZE="tencent.ocr.recognize";
    public static String IDCARD_RECOGNIZE="tencent.idcardRecognize";

    /*=====================腾讯身份识别===========================*/
    public static String REDIS_OCR_IDCARD_RECORD="ocr:idcard:count:%s:%s";
    public static String CARDTYPE_NOT_VALID="身份识别类型只能为0或1(0为身份证正面;1为身份证反面)";
    public static String PARAMS_MOBILE_NULL="用户手机号不能为空";
    public static String PARAMS_IMAGEMD5_NULL="图片加密串不能为空";
    public static String OCR_UNKNOW_ERROR_FROM_IMAGE="外部调用未知错误,请重新上传图片或检查(INVALID_IMAGE)";
    public static String OCR_TOO_BIG_IMAGE="上传身份证图片过大,请检查(请小于3M)";


    /*=====================腾讯人脸识别===========================*/
    public static String VERSION="1.0.0";
    public static String FACE_SUCCESS_CODE="0";
    public static String FACE_RESULT_TOKEN_FAIL="人脸识别返回TOKEN失败";
    public static String FACE_RESULT_TICKET_FAIL="人脸识别返回TICKET失败";
    public static String FACE_RESULT_GET_H5FACEID="人脸识别上传基本信息并获取h5faceid失败";
    public static String QUERY_ASYNC_FACE_RESULT_EXCEP="服务端异步查询人脸识别结果异常";
    public static String FACE_TICKET_SIGN="SIGN";
    public static String FACE_TICKET_NONCE="NONCE";


    /***================腾讯API人脸识别==========================*/
    public static String API_VERTIFY_FACE= "tencent.api.vertifyface";
}
